layui.use(function() {
    let $ = layui.$,
        layer = layui.layer;

    setTimeout(function (){
        $(document).on('click', '.img-show', function (e) {
            let src = $(this).attr("src");
            layer.photos({
                photos: {
                    "title": "Photos",
                    "start": 0,
                    "data": [
                        {
                            "alt": "",
                            "pid": 1,
                            "src": src,
                        }
                    ]
                },
                footer: false // 是否显示底部栏 --- 2.8.16+
            });
        });
    }, 520)
});